package cn.edu.nankai.bookstore.service;

import cn.edu.nankai.bookstore.domain.po.Item;
import cn.edu.nankai.bookstore.domain.po.Order;

import java.util.List;

public interface OrderService {
     List<Order> getAll();
     List<Order> getByCustomerId(int customerId);

     Order getById(int orderId);
     Order create(int customerId, int receiverId);
     boolean addItem(Order order, Item item);
     boolean removeItem(Order order, int bookId);

     boolean submit(Order order);
     boolean remove(int id);
}
